package com.sannuo.store.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sannuo.common.domain.DrugStore;
import com.sannuo.common.domain.vo.StoreAndUserVo;
import com.sannuo.store.dao.DrugStoreMapper;
import com.sannuo.store.service.DrugStoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class DrugStoreServiceImpl extends ServiceImpl<DrugStoreMapper, DrugStore> implements DrugStoreService {

    @Autowired
    private DrugStoreMapper drugStoreMapper;

    @Override
    public List<DrugStore> findAllHeadStore(StoreAndUserVo storeAndUserVo) {
        return drugStoreMapper.findAllHeadStore(storeAndUserVo);
    }

    @Override
    public List<DrugStore> findAllBranchStore(int zongStoreCode,StoreAndUserVo storeAndUserVo) {
        return drugStoreMapper.findAllBranchStore(zongStoreCode,storeAndUserVo);
    }
}

